import mysql.connector

conn = mysql.connector.connect(user='root', password='123456',database='test')
cur =  conn.cursor()
#cur.execute(r'create or replace table student(id int, name varchar(20), socre int)')
#cur.execute(r'insert into student values(1, "rose",88), (2,"", 89)')
#print(count)
#cur.close();
#conn.commit()
#conn.close()
#
cur.execute(r'select * from student limit  1')
data = cur.fetchall()
print(data)

cur.close()
conn.close()
